package com.tuo51.foudation.model;

import lombok.Data;

import javax.persistence.Embeddable;
import java.io.Serializable;

/**
 * *******************************
 * Created by Ron.
 * form com.tuo51
 * on 2018/5/18
 * *******************************
 */
@Embeddable
@Data
public class UnionKey implements Serializable {

    private String domainId;

    private String linkId;


    public static UnionKey of(String domainId, String linkId){
        UnionKey key = new UnionKey();
        key.setDomainId(domainId);
        key.setLinkId(linkId);
        return key;
    }
}
